﻿@model blacksoft.Models.Almacen

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}

<h2>Create</h2>

<div class="block big">
    <div class="titlebar">
        <h3>Nuevo Producto en terminal</h3>
    </div>
    <div class="block_cont">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">
               
                @Html.ValidationSummary(true)

                <div class="form-row">
                    @Html.LabelFor(model => model.IDTerminal, "IDTerminal", new { @class = "control-label col-md-2" })
                    @Html.DropDownList("IDTerminal", String.Empty)
                    @Html.ValidationMessageFor(model => model.IDTerminal)
                    
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.IDProducto, "IDProducto", new { @class = "control-label col-md-2" })
                    @Html.DropDownList("IDProducto", String.Empty)
                    @Html.ValidationMessageFor(model => model.IDProducto)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.StockActual, new { @class = "control-label col-md-2" })
                    @Html.EditorFor(model => model.StockActual)
                    @Html.ValidationMessageFor(model => model.StockActual)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.StockMin, new { @class = "control-label col-md-2" })
                    @Html.EditorFor(model => model.StockMin)
                    @Html.ValidationMessageFor(model => model.StockMin)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.StockMax, new { @class = "control-label col-md-2" })
                    @Html.EditorFor(model => model.StockMax)
                    @Html.ValidationMessageFor(model => model.StockMax)

                </div>
                <br />
                <div class="form-group">
                    
                        <input type="submit" value="Registrar" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado", "Index")
                </div>
            </div>
        }
    </div>
</div>

    
